package classes_tables;

public class Vol implements Table
{
	public int numVol;
	public int numPilote;
	public int numAvion;
	public String villeDepart;
	public String villeArrivee;
	
	public Vol (int numVol, int numPilote, int numAvion, String villeDepart, String villeArrivee)
	{
		this.numVol = numVol;
		this.numPilote = numPilote;
		this.numAvion = numAvion;
		this.villeDepart = villeDepart;
		this.villeArrivee = villeArrivee;
	}

	public int getNumVol() {
		return numVol;
	}

	public int getNumPilote() {
		return numPilote;
	}

	public int getNumAvion() {
		return numAvion;
	}

	public String getVilleDepart() {
		return villeDepart;
	}

	public String getVilleArrivee() {
		return villeArrivee;
	}

	@Override
	public String toString() {
		return "Vol [numVol=" + numVol + ", numPilote=" + numPilote
				+ ", numAvion=" + numAvion + ", villeDepart=" + villeDepart
				+ ", villeArrivee=" + villeArrivee + "]";
	}
	
	
	@Override
	public String[] getValeurs() {
		String[] s = new String[]{String.valueOf(numVol), String.valueOf(numPilote), String.valueOf(numAvion), villeDepart, villeArrivee};
		
		return s;
	}
	
}
